package qt.dao;

import org.apache.ibatis.annotations.Param;
import qt.domain.Station;

import java.util.List;

/**
 * Created by charmyyy on 2017/10/22.
 */
public interface StationDao {
    public List<Station> getAllStation();

    public List<Station> getStationIdAndNm();

    public Station getStation(@Param("stcd") String stcd);

    public int getStationCount();

    public List<Station> getPageStation(int start, int limit);

    public int addStation(Station czdjxx);

    public int upptStation(Station czdjxx);

    public int deleStation(@Param("stcd") String stcd);

    public List<Station> getAllStationByAddvcd(int start, int limit,String addvcd);

    public List<Station> getStationByGldw(@Param("admagcd")String gldw);

    public int getAllStationByAddvcdCount(@Param("addvcd") String addvcd);

    public List<Station> getAllStationByNmOrId(int start, int limit,String nmOrId);

    public int getAllStationByNmOrIdCount(String nmOrId);

    public List<Station> getAllStationByAdmagcd(int start, int limit,String admagcd);

    public int getAllStationByAdmagcdCount(@Param("admagcd") String admagcd);

    public List<Station> getStationByAddvcd(@Param("addvcd") String addvcd);

    public String getObitcdById(@Param("stcd") String stcd);

    public void upsz(@Param("stcd")String stcd,@Param("szm") String szm);

    public String getLastStcdByAddvcd(@Param("addvcd") String addvcd);


}
